package com.lefeng.cockpit.common.bean.dto.datasource;

import com.alibaba.fastjson.JSONArray;
import com.lefeng.cockpit.common.bean.dto.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class DataSourceDTO extends BaseDTO {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "数据源名称")
    private String dsName;

    @ApiModelProperty(value = "数据源类型，MYSQL ORACLE")
    private String dsType;

    @ApiModelProperty(value = "数据源分组")
    private String dsGroup;

    @ApiModelProperty(value = "数据库名称")
    private String dbName;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "主机地址")
    private String ipAddress;

    @ApiModelProperty(value = "端口")
    private Integer port;

    @ApiModelProperty(value = "地址")
    private String url;

    @ApiModelProperty(value = "驱动类")
    private String driverClass;

    @ApiModelProperty(value = "自定义参数")
    private JSONArray customParams;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "环境 开发、生产")
    private String env;

    @ApiModelProperty(value = "状态：0删除 1启用 2禁用")
    private Integer status;

    @ApiModelProperty(value = "zookeeper地址", hidden = true)
    private String zkAddress;

}
